package cn.itsource.basic.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.util.PageBean;
import java.util.List;

public interface IBaseService<T>{

    boolean add(T t);
    boolean update(T t);
    boolean delete(Long id);
    T queryById(Long id);
    List<T> queryAll();
    boolean batchRemove(List<Long> ids);

    PageBean<T> queryPage(BaseQuery query);

    PageBean<T> pageList(BaseQuery query);
    
}
